{extend name="public:edit" /}

<!-- 搜索栏 -->
{block name="content"}

    <div class="layui-form-item">
        <label class="layui-form-label">上级导航</label>
        <div class="layui-input-block">
            <select name="agency_nav_pid" lay-filter="aihao">

                <option value="0">顶级导航</option>
                {if $nav}
                {foreach $nav as $k => $v}
                    <option value="{$v['id']}">{$v['agency_nav_title']}</option>
                {/foreach}
                {/if}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">导航名称</label>
        <div class="layui-input-block">
            <input type="text" name="agency_nav_title" value="" lay-verify="required" placeholder="点此请输入" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" name="agency_nav_url" placeholder="点此请输入" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">按钮</label>
        <div class="layui-input-block">
            <input type="text" name="agency_nav_but" placeholder="点此请输入" value="add=增加,del=删除,up=修改" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" name="agency_nav_sort" lay-verify="required" placeholder="点此请输入" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-block">
            <input type="radio" name="agency_nav_is_show" value="1" title="展示" checked>
            <input type="radio" name="agency_nav_is_show" value="0" title="隐藏">
        </div>
    </div>

{/block}

<!-- js 执行方法 -->
{block name="script"}
<script>
    views.verify(false).get();
</script>
{/block}
  
  